<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/user/update}" method="post">
    <table width="500" border="1">
        <tr>
            <td>用户编号：</td>
            <td>
                <input type="text" name="id" th:value="${user.id}">
            </td>
        </tr>
        <tr>
            <td>用户名：</td>
            <td>
                <input type="text" id="username" name="username" th:value="${user.username}">
            </td>
        </tr>
        <tr>
            <td>密码：</td>
            <td>
                <input type="text" id="password" name="password" th:value="${user.password}"><br><br>
            </td>
        </tr>
        <tr>
            <td><input type="submit" value="修改"></td>
            <td><input type="reset" value="重置"></td>
        </tr>
    </table>
</form>
</body>
</html>